<?php


class BlogRelationModel extends RelationModel {
	protected $tableName = 'blog';

	protected $_link = array(
			'mapping_type' => MANY_TO_MANY,
			'mapping_name' => 'tags',
			'foreign_key' => 'p_id',
			'relation_foreign_key'=>'t_id',
			'relation_table'=>'blg_tag_post'

		);
}